9b511217deafd499e2384b29763c7f71e06d7044,osgi/service/src/main/java/org/jboss/as/osgi/deployment/OSGiXServiceParseProcessor.java,OSGiXServiceParseProcessor,deploy,#DeploymentPhaseContext#,51
Before Change
// Check if we already have an OSGi deployment
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
if (depUnit.hasAttachment(OSGiConstants.OSGI_METADATA_KEY))
return;
// Get the OSGi XService properties
VirtualFile virtualFile = depUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
VirtualFile xserviceFile = virtualFile.getChild(XSERVICE_PROPERTIES_NAME);
After Change
// Check if we already have {@link OSGiMetaData} attached
// or if we already have a bundle {@link Deployment}
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
OSGiMetaData metadata = depUnit.getAttachment(OSGiConstants.OSGI_METADATA_KEY);
Deployment dep = BundleLifecycleIntegration.getDeployment(depUnit.getName());
if (metadata != null || dep != null)
return;
// Get the OSGi XService properties